﻿@model IEnumerable<DrillOnline.Models.TrainningEvaluation>

@{
    ViewBag.Title = "Summary";
    
}
@if (ThisSession.IsReady) { 
    <h2>演练还未结束，暂时不能提供结果。</h2>
    <h3>请返回演练控制台，并在正是结束后再此查看演练结果。</h3>
    return;
}
<h2>Summary</h2>
<h2>评分总计:@Model.Sum(v=>v.ValuePoint)</h2>

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.RuleID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SessionID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Group)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ValuePoint)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ReplyContent)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ExaminerName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SessionName)
        </th>

    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.RuleID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SessionID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Group)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ValuePoint)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ReplyContent)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ExaminerName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SessionName)
        </td>

    </tr>
}

</table>
